package com.bit.cfdi.web.dao.impl;

import java.util.List;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.bit.cfdi.web.dao.ComprobanteCreditoDAO;
import com.bit.cfdi.web.domain.ComprobanteCredito;

@Repository
public class ComprobanteCreditoDAOImpl extends HibernateDaoSupport implements
		ComprobanteCreditoDAO {
	protected Logger log = LogManager.getLogger(this.getClass().getName());

	@Autowired
	public void init(final SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}

	@Override	
	@Transactional public List<ComprobanteCredito> getAll() throws DataAccessException {
		return null;
	}

	@Override
	@Transactional public void save(ComprobanteCredito comprobanteCredito) throws DataAccessException {
		getHibernateTemplate().saveOrUpdate(comprobanteCredito);
	}



}
